package com.ce.pms.house.dao.impl;

import java.util.List;

import org.hibernate.Query;

import com.ce.pms.base.dao.impl.PmsBaseDaoImpl;
import com.ce.pms.house.dao.ICopyMeterDataDao;
import com.ce.pms.house.model.CopyMeterData;

public class CopyMeterDataDaoImpl extends PmsBaseDaoImpl<CopyMeterData> implements
		ICopyMeterDataDao {
	/**
	 * 方法描述: 查找某房间对应的抄表数据
	 * @author 胡煦
	 * Create on:2008-10-6
	 * @param chargeStaId
	 * @return CopyMeterData
	 * Edit author:
	 * Edit on:
	 * 修改原因：
	 */
	public List<CopyMeterData> queryCopyMeterDataBy(Long houseId){
		String hql = "from CopyMeterData cd where cd.meter.house.id = ? ";
		Query query = this.createQuery(hql, houseId);
		return  query.list();
	}
}
